package org.cttic.visualization.visualization.common;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.util.List;

/**
 * @author shkstart
 * @create 2020-05-07 9:52
 * 实体：完成路径
 */
@Document(indexName = "trip_info_202005",type="_doc")
public class EsDataStrip implements Serializable {
    /**
     * 系统自增ID
     * 为了防止重复被替换掉
     */
    @Id
    private String uuid;
    private String travelId;
    private String vehicleNo;
    private String vehicleColor;
    private int gantryType;
    private String pointName;
    private String gantryId;
    private int confidenceLevel;
    private String gpstime;
    private int direction;
    private int speed;
    private Double range;
    private List<latLon> point;
    private String tansTime;
    private long portraitTime;
    private long fittingTime;
    private long curareacode;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getTravelId() {
        return travelId;
    }

    public void setTravelId(String travelId) {
        this.travelId = travelId;
    }

    public EsDataStrip() {
        super();
    }

    public EsDataStrip(String uuid, String travelId, String vehicleNo, String vehicleColor, int gantryType, String pointName, String gantryId, int confidenceLevel, String gpstime, int direction, int speed, Double range, List<latLon> point, String tansTime, long portraitTime, long fittingTime, long curareacode) {
        this.uuid = uuid;
        this.travelId = travelId;
        this.vehicleNo = vehicleNo;
        this.vehicleColor = vehicleColor;
        this.gantryType = gantryType;
        this.pointName = pointName;
        this.gantryId = gantryId;
        this.confidenceLevel = confidenceLevel;
        this.gpstime = gpstime;
        this.direction = direction;
        this.speed = speed;
        this.range = range;
        this.point = point;
        this.tansTime = tansTime;
        this.portraitTime = portraitTime;
        this.fittingTime = fittingTime;
        this.curareacode = curareacode;
    }

    public String getVehicleNo() {
        return vehicleNo;
    }

    public void setVehicleNo(String vehicleNo) {
        this.vehicleNo = vehicleNo;
    }

    public String getVehicleColor() {
        return vehicleColor;
    }

    public void setVehicleColor(String vehicleColor) {
        this.vehicleColor = vehicleColor;
    }

    public int getGantryType() {
        return gantryType;
    }

    public void setGantryType(int gantryType) {
        this.gantryType = gantryType;
    }

    public String getPointName() {
        return pointName;
    }

    public void setPointName(String pointName) {
        this.pointName = pointName;
    }

    public String getGantryId() {
        return gantryId;
    }

    public void setGantryId(String gantryId) {
        this.gantryId = gantryId;
    }

    public int getConfidenceLevel() {
        return confidenceLevel;
    }

    public void setConfidenceLevel(int confidenceLevel) {
        this.confidenceLevel = confidenceLevel;
    }

    public String getGpstime() {
        return gpstime;
    }

    public void setGpstime(String gpstime) {
        this.gpstime = gpstime;
    }

    public int getDirection() {
        return direction;
    }

    public void setDirection(int direction) {
        this.direction = direction;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public Double getRange() {
        return range;
    }

    public void setRange(Double range) {
        this.range = range;
    }

    public List<latLon> getPoint() {
        return point;
    }

    public void setPoint(List<latLon> point) {
        this.point = point;
    }

    public String getTansTime() {
        return tansTime;
    }

    public void setTansTime(String tansTime) {
        this.tansTime = tansTime;
    }

    public long getPortraitTime() {
        return portraitTime;
    }

    public void setPortraitTime(long portraitTime) {
        this.portraitTime = portraitTime;
    }

    public long getFittingTime() {
        return fittingTime;
    }

    public void setFittingTime(long fittingTime) {
        this.fittingTime = fittingTime;
    }

    public long getCurareacode() {
        return curareacode;
    }

    public void setCurareacode(long curareacode) {
        this.curareacode = curareacode;
    }

    public static   class latLon{
        private Double lon;
        private Double lat;

        public Double getLon() {
            return lon;
        }

        public void setLon(Double lon) {
            this.lon = lon;
        }

        public Double getLat() {
            return lat;
        }

        public void setLat(Double lat) {
            this.lat = lat;
        }
    }
}
